import pytest
from baseTools.myLogger import logger
import os

if __name__ == '__main__':
    logger.info("开始运行接口自动化测试用例".center(50, "*"))
    pytest.main()
    logger.info("接口自动化测试用例运行完成".center(50, "*"))
    logger.info("生成html测试报告".center(50, "*"))
    os.system(r'allure generate ./report/jsonreport -o ./report/htmlreport --clean')